package com.lingchen.boot.gof.adapter;

import org.aspectj.lang.annotation.Aspect;
import org.springframework.aop.MethodBeforeAdvice;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;

/**
 * Created by lc on 2020/6/24
 */
@Aspect()
@Component
public class UserInfoBefore implements MethodBeforeAdvice {
    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println(args[0]+"身份识别通过");
    }
}
